<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>flat-ui标签</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width" />
<script src="js/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/css.css"/>
<script src="js/tagsinput.js" type="text/javascript" charset="utf-8"></script>
<style type="text/css">
	*{font-family:"sta cartman","开心软件黑体简体","开心软件二黑简体",sans-serif}
</style>

</head>
<body>

<div class="box">
	<h1 style="text-align: center;margin: 20px 0;margin-top: 200px;">提取faltUI中的标签input</h1>
	<div class="tagsinput-primary form-group">
	    <input name="tagsinput" id="tagsinputval" class="tagsinput" data-role="tagsinput" value="faltui,这是一个标签" placeholder="输入后回车"/>
	    <button class="btn" onClick="getinput()">获取输入的值</button>
	</div>
</div>

<script type="text/javascript">
function getinput(){
	alert($('#tagsinputval').val());
}
</script>

</body>
</html>